package procsim;

import java.awt.*;

public class GInverter extends Inverter implements GraphicalElement {

    private int width = 4;
    private int height = 4;
    private int x, y;

    public GInverter(Signal in) {
        super(in);
    }

    public GInverter(Signal in, Signal out) {
        super(in, out);
    }

    @Override
    public void setCoords(int x, int y){
        this.x = x;
        this.y = y;
    }

    @Override
    public int getWidth() {
        return width;
    }

    @Override
    public int getHeight() {
        return height;
    }
    
    @Override
    public void setSize(int width, int height) {
        this.width = width;
        this.height = height;
    }

    @Override
    public void drawIt(Graphics2D g, int x, int y) {
        g.drawOval(x, y, width, height);
    }

    @Override
    public void drawIt(Graphics2D g) {
        drawIt(g, x, y);
    }

}